#! /bin/bash

# This script clean CMake - related files
# author: R. Marson

CUR_DIR=$PWD

# root dir
rm -f $CUR_DIR/cmake_install.cmake $CUR_DIR/CMakeCache.txt $CUR_DIR/Makefile
rm -r $CUR_DIR/CMakeFiles

#linux build
if [ -a $CUR_DIR/OpenPool ]; then 
  rm -f $CUR_DIR/OpenPool
fi

#cleanup for mac
if [ -d $CUR_DIR/OPENPOOL.xcodeproj ]; then
	rm -r $CUR_DIR/OPENPOOL.xcodeproj
	rm -r $CUR_DIR/CMakeScripts
	rm -r $CUR_DIR/OPENPOOL.build
	if [ -d $CUR_DIR/Debug ]; then
		rm -r $CUR_DIR/Debug
	fi
	if [ -d $CUR_DIR/Release ]; then
		rm -r $CUR_DIR/Release
	fi
fi



